#pragma once
#include <fstream>
#include "udp.h"
#include <map>
#include <chrono>

//#include <pthread.h>
#include <ctime>

using namespace std;

class ParseTelDataDJ
{
public:
    ClientUDP Sendteledata1;
    ClientUDP Sendteledata_multi;
    ClientUDP Sendteledata_multi1;
    ClientUDP Sendteledata_multi2;

    ParseTelDataDJ();
    ~ParseTelDataDJ();
    void run();

    std::chrono::time_point<std::chrono::high_resolution_clock> timestamp_exist;
    std::chrono::time_point<std::chrono::high_resolution_clock> timestamp_lost;

private:
};

class ReceiveData
{
public:
    ServerUDP Receteledata1;
    ServerUDP Receteledata_multi;
    ServerUDP Receteledata_multi1;
    ServerUDP Receteledata_multi2;

    ReceiveData();
    ~ReceiveData();
    void run();

    std::chrono::time_point<std::chrono::high_resolution_clock> timestamp_exist;
    std::chrono::time_point<std::chrono::high_resolution_clock> timestamp_lost;

private:
};

